package com.allianz.webapps.secondController;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.alibaba.druid.util.StringUtils;
import com.allianz.webapps.common.CustomerContextHolder;
import com.allianz.webapps.https.interfaces.type001.pojo.User;
import com.allianz.webapps.service.AdT2PolicyAgentsService;
import com.allianz.webapps.service.AdV8TaskSubService;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;

//http://localhost:8080/pad_marketing/main/coverConfirm.action
@Controller
@RequestMapping(value="/MyPolicy")
public class MyPolicy {
	
	@Autowired
	private AdT2PolicyAgentsService   policyAgentsService;
	@Autowired
	private AdV8TaskSubService policyOSService;
	@Autowired
	private ObjectMapper obMapper;
	
	/**
	 * //承保前
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="underwriting")
	public ModelAndView underwriting(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/underwriting");
		return mav;
	}
	
	/**
	 * //承保前列表
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="underlist")
	public ModelAndView underlist(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/underlist");
		return mav;
	}
	
	/**
	 * //新单追踪
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="track")
	public ModelAndView track(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/track");
		return mav;
	}
	
	/**
	 * //新单追踪列表
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="tracklist")
	public ModelAndView tracklist(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/tracklist");
		return mav;
	}
	
	/**
	 * //保全
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="claims")
	public ModelAndView claims(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/claims");
		return mav;
	}
	
	/**
	 * //保全列表
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="claimslist")
	public ModelAndView claimslist(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/claimslist");
		return mav;
	}
	
	/**
	 * //理赔
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="preservation")
	public ModelAndView preservation(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/preservation");
		return mav;
	}
	
	/**
	 * //理赔列表
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="preserlist")
	public ModelAndView preserlist(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/preserlist");
		return mav;
	}
	
	/**
	 * //续期代收
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="renewal")
	public ModelAndView renewal(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/renewal");
		return mav;
	}
	
	/**
	 * //保单查询
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="query")
	public ModelAndView query(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/query");
		return mav;
	}
	
	
	/**
	 * //保单查询列表
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value="querylist")
	public ModelAndView querylist(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/querylist");
		return mav;
	}
	
	
	
}
